package com.das.mechanic_base.bean.custrecord;

import com.das.mechanic_base.bean.alone.AloneImageAndRecordBean;
import com.das.mechanic_base.gen.AloneImageOrRecordConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.List;

@Entity
public class CustomRecordListBean {

    @Id(autoincrement = true)
    private Long id;

    /**
     * 唯一标识 查询题目列表 workBaseId + standOrNot
     */
    private String workBaseId;

    /**
     * 唯一标识 通过workBaseId + 当前下标 查询当前下标下的图片和视频
     */
    private String sn;

    /**
     * 添加的自定义工序名称
     */
    private String name;

    private String serviceBaseSn;

    /**
     * 是否是标准工序
     */
    private boolean standardOrNot;

    @Convert(converter = AloneImageOrRecordConverter.class, columnType = String.class)
    private List<AloneImageAndRecordBean> mList;

    public List<AloneImageAndRecordBean> getMList() {
        return this.mList;
    }

    public void setMList(List<AloneImageAndRecordBean> mList) {
        this.mList = mList;
    }

    public String getServiceBaseSn() {
        return this.serviceBaseSn;
    }

    public void setServiceBaseSn(String serviceBaseSn) {
        this.serviceBaseSn = serviceBaseSn;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public boolean getStandardOrNot() {
        return this.standardOrNot;
    }

    public void setStandardOrNot(boolean standardOrNot) {
        this.standardOrNot = standardOrNot;
    }

    public void setWorkBaseId(String workBaseId) {
        this.workBaseId = workBaseId;
    }

    public String getWorkBaseId() {
        return this.workBaseId;
    }

    @Generated(hash = 426045188)
    public CustomRecordListBean(Long id, String workBaseId, String sn, String name,
            String serviceBaseSn, boolean standardOrNot, List<AloneImageAndRecordBean> mList) {
        this.id = id;
        this.workBaseId = workBaseId;
        this.sn = sn;
        this.name = name;
        this.serviceBaseSn = serviceBaseSn;
        this.standardOrNot = standardOrNot;
        this.mList = mList;
    }

    @Generated(hash = 1074867950)
    public CustomRecordListBean() {
    }

    @Override
    public String toString() {
        return "CustomRecordListBean{" +
                "id=" + id +
                ", workBaseId='" + workBaseId + '\'' +
                ", sn='" + sn + '\'' +
                ", name='" + name + '\'' +
                ", serviceBaseSn='" + serviceBaseSn + '\'' +
                ", standardOrNot=" + standardOrNot +
                ", mList=" + mList +
                '}';
    }
}
